﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;

namespace WindowsGame1
{
    public class Helper
    {
        public static Vector2 VectorFromAngle(float angleInRadian)
        {
            Matrix rot = Matrix.CreateRotationZ(angleInRadian);
            Vector3 dir = Vector3.Transform(new Vector3(0, 1, 0), rot);
            return new Vector2(dir.X, dir.Y);
        }
    }
}
